home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-26 | 1.8 KB | 39 lines | [TEXT/GEOL] |
- Item 9750205 29-May-89 14:14
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: A.DEVSUPPT Austria - Developer Support
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: re Enough temp space ?
-
- The first block of information from your message shows that you have only 120
- bytes of contiguous space left in your heap. That's why MacApp could not
- satisfy your code reserve size (it needed 778 bytes).
-
- Increasing your low space reserve only changes the condition when MacApp will
- signal that you are low on space. If MacApp cannot allocate the entire low
- space reserve, then it treat the heap as low on space. That's why the low
- space reserve should be relatively small. Increasing the MultiFinder partition
- size is the only way for your application to have more memory available to it.
-
- My first guess at the problem is that you have a storage leak, in which you are
- not freeing some data once it is no longer needed. A symptom of this would be
- that the program would run fine for a while and gradually run out of memory.
-
- One way to track this down is to use the MacApp debugger heap info command to
- print out the amount of free memory & number of free master pointers, do some
- command, and display the heap info again. If you can't account for differences
- (because you know the command allocated some memory), then you have a leak.
- (There will be minor differences in the amt of free memory because as you
- allocate and free data, but the number of master pointers should be exact.)
-
- A common mistake is to override the Free method and forget to call INHERITED
- Free. Or to forget to override Free, even though the object contains a
- references to another object that should be freed as well.
-
- Larry Rosenstein
-
-
-